
//------------------------------------------------------------------------------

namespace Apps.Models
{
     using System.ComponentModel.DataAnnotations.Schema;
    using System;
    using System.Collections.Generic;
    
    [Table("MIS_MAILBOX")] 
     public partial class MIS_MailBox
    {
        public MIS_MailBox()
        {
            this.MIS_MailBox1 = new HashSet<MIS_MailBox>();
            this.MIS_MailBoxUsers = new HashSet<MIS_MailBoxUsers>();
        }
    
        [Column("ID"), System.ComponentModel.DataAnnotations.Key] 
     public string Id { get; set; }
        [Column("SUBJECT")] 
     public string Subject { get; set; }
        [Column("CONTENTBODY")] 
     public string ContentBody { get; set; }
        [Column("ATTACHMENT")] 
     public string Attachment { get; set; }
        [Column("USERID")] 
     public string UserId { get; set; }
        [Column("STARFLAG")] 
     public int StarFlag { get; set; }
        [Column("STATUS")] 
     public int Status { get; set; }
        [Column("ORIGINALID")] 
     public string OriginalId { get; set; }
        [Column("FORMTO")] 
     public string FormTo { get; set; }
        [Column("FORMTONAME")] 
     public string FormToName { get; set; }
        [Column("CREATETIME")] 
     public System.DateTime CreateTime { get; set; }
    
        public virtual ICollection<MIS_MailBox> MIS_MailBox1 { get; set; }
        public virtual MIS_MailBox MIS_MailBox2 { get; set; }
        public virtual SysUser SysUser { get; set; }
        public virtual ICollection<MIS_MailBoxUsers> MIS_MailBoxUsers { get; set; }
    }
}
